Skip to main content
Version: 1.x.x

ResponseInterceptorCallback


import { ResponseInterceptorCallback } from "@hyper-fetch/core"

Description

Defined in builder/builder.types.ts:46

Preview

type ResponseInterceptorCallback<Response,Error> = (response: ClientResponseType<Response, Error>, command: CommandInstance) => Promise<ClientResponseType<any, any>> | ClientResponseType<any, any>;

Structure

(response: ClientResponseType<Response, Error>, command: CommandInstance) => Promise<ClientResponseType<any, any>> | ClientResponseType<any, any>